/*
 * launcher_robot16.cpp
 *
 *  Created on: Dec 19, 2013
 *      Author: m
 */

#include "ProcessAux.h"
#include "Cinta13A.h"
#include "Cinta13B.h"
#include "Cinta15.h"
#include "Robot11AProductor.h"
#include "Robot11BProductor.h"
#include "Robot14Consumidor.h"
#include "Robot14Productor.h"
#include "Robot16Consumidor.h"
#include "DSEMManager.h"
#include "../middleware/CommunicationRobot16.h"
#include "../channel_common/ChannelInterface.h"

int main ( int argc, char* argv[] )
{
//	std::string hostName = "robot16_pc";
//
//	Argv args;
//	args.pushArg(hostName);
//	channel::ChannelInterface::create(hostName);
//
//	middleware::CommunicationRobot16::create(middleware::CommunicationRobot16::SIDE_ROBOT_16,hostName);


    // Lanzar los semaforos distribuidos especificos del robot16
    DSEMManager::createSignaler( Cinta15::s_ipcBaseFile, Cinta15::s_semProductorKey1, "cinta15prod" );
    DSEMManager::createWaiter( Cinta15::s_ipcBaseFile, Cinta15::s_semConsumidorKey2, "cinta15cons" );
    DSEMManager::createSignaler( Robot14Productor::s_ipcBaseFile, Robot14Productor::s_semaphoreKey1, "r14prod" );
    DSEMManager::createWaiter( Robot16Consumidor::s_ipcBaseFile, Robot16Consumidor::s_semaphoreKey2, "r16cons" );

//    ProcessAux::launchProcess( "./controlR16" );

    return 0;
}
